/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：GmudUser.java <br>
 * 创建时间：2014-8-2 上午10:59:28 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.community;

import cn.bmob.v3.BmobUser;
import cn.bmob.v3.datatype.BmobRelation;
import lostland.gmud.exv2.Game;

/**
 * 类名：GmudUser <br>
 * 说明：社区用户类
 *
 * @author 12548
 */
@SuppressWarnings("serial")
public class GmudUser extends BmobUser {

	/**
	 * @return 返回当前已登录的用户。如果没登陆则返回null
	 */
	public static GmudUser getInstance() {
		return BmobUser.getCurrentUser(Game.getInstance(), GmudUser.class);
	}

	private String saveObjectID = "";

	private String nickName = "";

	private int lastSign = 0;

	private int signLast = 0;

	private Integer gold = 1000;

	private BmobRelation friends = new BmobRelation();

	/**
	 *
	 */
	public GmudUser() {
		super();
	}

	/**
	 * @return saveObjectID
	 */
	public String getSaveObjectID() {
		return saveObjectID;
	}

	/**
	 * @param saveObjectID 要设置的 saveObjectID
	 */
	public void setSaveObjectID(String saveObjectID) {
		this.saveObjectID = saveObjectID;
	}

	/**
	 * @return nickName
	 */
	public String getNickName() {
		return nickName;
	}

	/**
	 * @param nickName 要设置的 nickName
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	/**
	 * @return lastSign
	 */
	public int getLastSign() {
		return lastSign;
	}

	/**
	 * @param lastSign 要设置的 lastSign
	 */
	public void setLastSign(int lastSign) {
		this.lastSign = lastSign;
	}

	/**
	 * @return signLast
	 */
	public int getSignLast() {
		return signLast;
	}

	/**
	 * @param signLast 要设置的 signLast
	 */
	public void setSignLast(int signLast) {
		this.signLast = signLast;
	}

	/**
	 * @return friends
	 */
	public BmobRelation getFriends() {
		return friends;
	}

	public Integer getGold() {
		return gold;
	}

	public void setGold(Integer gold) {
		this.gold = gold;
	}


}
